import Http from './http'


// 启用LocalStorage，避免每次都需要后端支持

class Service {
  constructor() {
    // 将服务所需要的依赖加载进来
    this.http = new Http()
  }

  getDirectionTemplateData () {
    // const uri = `template`
    const uri = `template.json`
    return this.http.Get(uri)
  }

  getDirectionIndustriesData () {
    // const uri = `cmbtargets`
    const uri = `mock.json`
    return this.http.Get(uri)
  }

  getRadialStackbarData () {
    const uri = `radialstackbar.json`
    return this.http.Get(uri)
  }

  getCompositionRightData () {
    const uri = `composition-right.json`
    return this.http.Get(uri)
  }
}

const service = new Service()
export default service